import libtcodpy
import random
from Entity import *


def rockWall():

    bkgrnd = None
    rand = random.randint(0, 2)
    if rand == 0:
        bkgrnd = libtcodpy.dark_gray
    else:
        bkgrnd = libtcodpy.gray

    # bkgrnd = libtcodpy.dark_gray

    return Entity(health=200, backgroundColor=bkgrnd, name="Rock Wall", blocksMovement=True, blocksVision=True)


def rockFloor():

    color = None
    rand = random.randint(0, 2)
    if rand == 0:
        color = libtcodpy.dark_gray
    else:
        color = libtcodpy.gray

    return Entity(health=200, icon="\"", textColor=color, name="Rock Floor", blocksMovement=True, blocksVision=True)


def grass():

    # icons = ["\"", ";", "'", ","]
    # r = random.randint(0, len(icons)-1)

    return Entity(health=5, icon="\"", textColor=libtcodpy.green, name="Grass", blocksMovement=False, blocksVision=False)

